package cn.com.wantools.service.task;

import cn.com.wantools.service.LoanRateService;
import com.jfinal.aop.Inject;
import io.jboot.components.schedule.annotation.FixedRate;

@FixedRate(period = 60 * 60 * 24, initialDelay = 60)
public class RefreshLoanRateTask implements Runnable {

    @Inject
    private LoanRateService loanRateService;

    @Override
    public void run() {
        loanRateService.reloadLoanRate();
    }
}
